package com.api.shopapi.service;

import com.api.shopapi.entity.Institution;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface InstitutionService {

    int insert(Institution institution);

    int update(Institution institution);

    int updateAddressAndLatLngAndType(Institution institution);

    int delete(String institutionCode);

    Institution getByInstitutionCode(String institutionCode);

    Institution getByUserCode(String userCode);

    PageInfo<Institution> getPage(int pageIndex, int pageSize, String governmentCode);

    List<Institution> listByGovCode(String governmentCode);

    List<Institution> listByGovCodeType(String governmentCode, int type);


    PageInfo<Institution> pageByGovCodeName(int pageIndex, int pageSize,
                                            String governmentCode, String name);


}
